Basic Search & Replace

Overview

Capella provides contextual search & replace on model elements. Several options are provided to enable fine grained search & replace on Capella models.

To open the Search & Replace window dialog, select a Capella element in Capella Project Explorer and click on'' Ctrl+Shift+F''. You can also use the contextual “Search and Replace” menu or the magnifying glass toolbar menu.

Fig. Search & Replace contextual and toolbar menus.


Search Options



Model Element Scope Options

Model element scope options enable to select the search scope in Capella model elements. Three scopes are available: Name, summary and description.

Fig. Model element scope options.

Find Pattern Options

The find text is used to match model elements before performing the replacement. Several options can be chosen:

Fig. Find pattern options.

Note: selecting “Wildcards” options disables “Whole expression” option.

Model Scope Options

Search can be performed on the selection displayed in the tree (i.e. with “selected elements” option) or on the whole model (e.g. “Whole model” option).

Fig. Model scope options

Replace Impact Preview

Search & Replace window provides a Preview impact feature that enables to compute impacted elements for a specific find pattern. Impacted elements are displayed in a new window. It also reports impacted elements metrics in the main dialog.

Fig. Computing impacted elements with “Preview impact” button



In the Preview Impact window, contextual menus are available to help finding further information on impacted elements.

Fig. Contextual menus on Preview impact window



Replace Options

Replace all button performs a replace on all the impacted elements displayed in the Preview Impact dialog window. The “update description hyperlinks” option enables to automatically update descriptions that are impacted by the changes performed by the replace execution.

Fig. Replace all with description hyperlinks update

After performing a replacement information are reported to the information view. It shows impacted elements for name, summary and description replacements and the impacted element ids.

Fig. Replace all report